
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.Warehouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2022-12-22
**/
public interface WarehouseRepository extends JpaRepository<Warehouse, String>, JpaSpecificationExecutor<Warehouse> {

    Warehouse findWarehouseByIdAndDelete(String id, Integer delete);
    List<Warehouse> findWarehouseByWarehouseCodeAndDelete(String code, Integer delete);
    Warehouse findWarehouseById(String id);

}